package com.shop.seller.service;

import java.util.List;

import com.shop.domain.CustomSeller;
import com.shop.model.Seller;
/**
 * 
 * @author Y
 *
 */
public interface SellerService{
     /**
      * 商家登录
      * @param username
      * @param password
      * @return
      * @throws Exception
      */
	public CustomSeller login(String username,String password) throws Exception;
	/**
	 * 商家注册
	 * @param seller
	 * @return
	 * @throws Exception
	 */
	public boolean register(CustomSeller seller) throws Exception;
	/**
	 * 商家修改信息
	 * @param seller
	 * @return
	 * @throws Exception
	 */
	public boolean updateSellerMessage(CustomSeller seller) throws Exception;
	/**
	 * 商家修改密码
	 * @param seller
	 * @return
	 * @throws Exception
	 */
	public boolean updateSellerPassword(String username,String password) throws Exception;
	
	/**
	 * 根据id查找商家
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public CustomSeller findSellerMessage(String id) throws Exception;
	
	/**
	 * 查询所有的商家的公司名
	 * @return
	 * @throws Exception
	 */
	
	public List<String> findSellerNames() throws Exception;
	/**
	 * 根据商家信息进行查找
	 * @param seller
	 * @return
	 * @throws Exception
	 */
	public boolean selectSeller(CustomSeller seller) throws Exception;
}
